<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Valera
 * Date: 28.05.11
 * Time: 5:37
 * To change this template use File | Settings | File Templates.
 */
 
class Api_Row_Base extends Zend_Db_Table_Row_Abstract
{
    private $__router = NULL;

    private function __getRouter()
    {
        if( NULL === $this -> __router ) $this -> __router = Zend_Controller_Front :: getInstance () ->getRouter();
        return $this -> __router;
    }

    protected function _assemble($userParams, $name = null, $reset = false, $encode = true)
    {
        return $this -> __getRouter() -> assemble($userParams, $name, $reset, $encode);
    }
}